import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
 server:{
     proxy: {// 跨域代理
         '/data': {
             target: 'http://www.weather.com.cn', // 
             changeOrigin: true,
             rewrite: (path) => path.replace(/^\/data/, '/data')
         },
     },
 }

})
